package main

import (
	"fmt"
	"time"
)

func main() {
	for i := 0; i < 10; i++ {
		go func(x int) {
			time.Sleep(time.Millisecond)
			fmt.Println(x)
		}(i)
	}

	for {
		time.Sleep(time.Second)
	}
}
